<?php
// +----------------------------------------------------------------------
// | ThinkBLOG (Build on ThinkPHP)
// +----------------------------------------------------------------------
// | @link ( http://www.yurnero.net )
// +----------------------------------------------------------------------
// | @licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | @author nicholas <nicholasinlove@126.com>
// +----------------------------------------------------------------------
// | $Id: PostsViewModel.class.php 114 2012-04-13 01:51:48Z nicholasinlove1986@gmail.com $
// +----------------------------------------------------------------------


class PostsViewModel extends ViewModel {

	protected $viewFields = array(
		'Posts' => array ('COUNT(Posts.postid)' => 'count' ),
		'Relationships'=> array ('_on' => 'posts.postid=relationships.postid' ),
	);
	
}